|
Forum > General SMF Forum
htaccess redirect question
(1/2) > >>
shuban:
I'd like to redirect all my topics (only) to another url. I tried the following, but it didn't work
RewriteEngine On RewriteRule ^/?topic/([^/d]+)/?$ https://NEWURL.com/index.php?topic=$1 [R=301,L]
shuban:
Also tried:
RewriteRule ^(.*)https:\/\/OLD\.com\/index.php\?topic=(.*)$ https://NEW.com/index.php?topic=$2 [R=301,L]
Didn't work
SMFHacks:
I would make sure ? is escaped in the first part
shuban:
https://regex101.com/r/o8Obr8/1
Tried the following, still don't know.
SMFHacks:
does your topic url look like http://site.com/?topic/877/
Navigation
[0] Message Index
[#] Next page |
No thumbnails on new uploads
by SMFHacks
March 27, 2024, 02:10:41 pm
|
Display the Contact Page for guests
by SMFHacks
March 27, 2024, 10:55:43 am
|
is it possible to add support for odysee.com
by fvlog19
March 21, 2024, 08:47:51 am
|
Request for admin notification
by davejo
March 10, 2024, 01:31:59 am
|
I need help with torrent upload
by Ineedsmfhelp
March 09, 2024, 10:01:13 pm
|
an idea for new mod (( content type with different display ))
by SMFHacks
February 27, 2024, 01:36:27 pm
|
[Mod] RSS Feed Poster
by SMFHacks
February 27, 2024, 11:57:18 am
|
find duplicate pictures
by fvlog19
February 14, 2024, 02:22:40 pm
|
Error uploading video.
by SMFHacks
February 08, 2024, 02:04:16 pm
|
Gallery icon as last added image
by fvlog19
February 01, 2024, 01:04:56 pm
|
|
|