Custom htaccess rule for Joomla article not working
- daveb
-
Topic Author
- Offline
- New Member
-
Less
More
- Thank you received: 0
14 years 2 weeks ago #6065
by daveb
I'm creating a custom SEF (non-SEFAdvance) deep link in Joomla 1.5 for a Joomla article which contains a url parameter (video id). This is for Google to index my videos inside my video player so i have a unique url for each video. I created a RewriteRule in root .htaccess file. Which converts sef url to non-sef joomla url.
Example:
RewriteRule ^video/([a-z0-9-_]+)/?$ index.php?option=com_content&view=article&id=119&Itemid=189&v=$1 [NC,L]
This doesn't work if SEFAdvance is enabled. It just sends me to the homepage. Works if SEFAdvance is disabled.
Debug info:
SEF Advance debug information
Array
(
[option] => com_content
[view] => frontpage
[id] => 119
[Itemid] => 1
[v] => 983849384
[limit] => 9
)
/video/983849384/
Parsed in: 0.990 seconds, 9.39 MB
Is this correct to create a rewrite rule in .htaccess or should this be inside SEFAdvance configuration? Or is there a way for SEFAdvance to ignore anything inside /video? Or a different way to set this up?
SEFAdvance version: 2.2.6
Thanks
Example:
RewriteRule ^video/([a-z0-9-_]+)/?$ index.php?option=com_content&view=article&id=119&Itemid=189&v=$1 [NC,L]
This doesn't work if SEFAdvance is enabled. It just sends me to the homepage. Works if SEFAdvance is disabled.
Debug info:
SEF Advance debug information
Array
(
[option] => com_content
[view] => frontpage
[id] => 119
[Itemid] => 1
[v] => 983849384
[limit] => 9
)
/video/983849384/
Parsed in: 0.990 seconds, 9.39 MB
Is this correct to create a rewrite rule in .htaccess or should this be inside SEFAdvance configuration? Or is there a way for SEFAdvance to ignore anything inside /video? Or a different way to set this up?
SEFAdvance version: 2.2.6
Thanks
Please Log in or Create an account to join the conversation.