skip to Main Content

htaccess infinite loop issue – PHP

I have run into an issue with my .htaccess file. The file changes the ugly URL such as http://localhost/news.php?article_slug=example-1 to http://localhost/news/example-1 This works perfectly, but when I go to http://localhost/news i get a 404 error. Within news.php I have a…

VIEW QUESTION

Unable to set appropriate rewrite? – Apache

I want to block access via rewrite to IBM WebSphere WCM: /wps/wcm/webinterface/login/login.jsp And allow access to everything else under /wps/* Any ideas? I tried: RewriteCond %{REQUEST_URI} ^/wps/wcm/webinterface/login/login.jsp [OR,NC] RewriteCond %{REQUEST_URI} !^/wps.* RewriteRule ^/.* https://myhost.com/wps/portal [L,R=permanent]

VIEW QUESTION

.htaccess PHP Parameter Friendly URL

I would like to make the URLs of my Store URL-friendly. Current URL Structure https://my-domain.com/store/store.php?page=packages&id=1 Desired URL Structure https://my-domain.com/store/packages/1 And also for direct access to the PHP files such as: https://my-domain.com/store/profile.php to https://my-domain.com/store/profile How would I need to go after…

VIEW QUESTION

RewriteRule passing url parts through as arguments not coming through to php script – Apache

I have a URL http://localhost/xxxx/cat/History?randomArg=2 that I want to run http://localhost/xxxx/cat/edit.php?name=History&randomArg=2 http://localhost/xxxx/cat.php?name=History&randomArg=2 (POST EDIT#2 Correction I did originally ask for edit.php but I meant cat.php) and I have a RewriteRule that works on my live server RewriteRule "^(.*)xxxx.*/cat/(.*)?(.*)$" $1/xxxx/cat.php?name=$2&t=123$3[QSA] and…

VIEW QUESTION
Back To Top
Search